<!DOCTYPE html>
<html lang="en">
	<head>
		<title>.:: {$Uri->get('application')} ::.</title>
		<link rel="shortcut icon" href="{$PUBLIC_PATH}img/logo.png" />
		<meta name="resource-type" content="document" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta name="revisit-after" content="1" />
		<meta name="classification" content="Intranet" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="description" content="Sistema gerenciador de aplicações" />
		<meta name="keywords" content="FoxSis" />
		<meta name="distribution" content="Local" />
		<meta name="rating" content="General" />
		<meta name="author" content="FoxSis" />
		<meta name="language" content="pt-br" />
		<meta name="doc-class" content="Completed" />
		<meta name="doc-rights" content="Public" />

		<script type="text/javascript" src="{$PUBLIC_PATH}locastyle/locastyle.js"></script>		
		<link rel="stylesheet" type="text/css" href="{$PUBLIC_PATH}css/flashMessage.css"/>
		<link rel="stylesheet" type="text/css" href="{$PUBLIC_PATH}css/style.css"/>
		<link rel="stylesheet" type="text/css" href="{$PUBLIC_PATH}locastyle/locastyle.css">
		<link rel="stylesheet" type="text/css" media="print" href="{$PUBLIC_PATH}css/print.css"/>
	</head>
	<body style="background:#fff">
		<div id="header">
			<a href="{$BASE_PATH}" style='color:white;'> .:: {$Uri->get('application')} ::.</a>
			<div class='btn-toolbar menu-superior'>
				<div class="btn-group">
					<a class="btn ico-bag" data-toggle="dropdown">
						{if $smarty.session.$SESSION_LOGIN.empresaAtual.dsapelido != ''}
							{$smarty.session.$SESSION_LOGIN.empresaAtual.dsapelido}
						{else}
							Empresas
						{/if}
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						{foreach from=$smarty.session.$SESSION_LOGIN.empresas key=k item=i}
							<li><a class="sAdd" href="{$BASE_PATH}login/index/trocarEmpresa/idpessoa/{$k}">{$i}</a></li>
						{/foreach}
					</ul>
				</div>
				<div class="btn-group">
					<a class="btn ico-home" href="{$BASE_PATH}">
						Dashboard
					</a>
					<a class="btn ico-th-large dropdown-toggle" data-toggle="dropdown">
						Aplicações
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						{foreach from=$smarty.session.$SESSION_LOGIN.aplicacoes key=k item=i}
							<li><a class="sAdd" href="{$BASE_PATH}{$i.dspath}">{$i.dsnome}</a></li>
						{/foreach}
					</ul>
					<a class="btn ico-logout" href="{$BASE_PATH}login/index/logout">
						Sair
					</a>
				</div>
			</div>
		</div>
		
		<!--MENU DO SISTEMA-->    
		<div id="sidebar">
			<nav class="submenu">
				{$menuSistema}
			</nav>
		</div>
		<!-- FIM DO MENU -->
		<!-- CONTEUDO DA APLICACAO -->
		<div id="content">
			{$content}
		</div>
		<!-- FIM DO CONTEUDO DA APLICACAO -->

		<div id='divCarregando' class="carregando"></div>
		<div id="myModal" class="modal fade hidden" aria-hidden="true">
			<form id='formModal' class="validate" action="{$BASE_PATH}" method='post'>
				<div class="modal-header">
				</div>
				<div class="modal-body">
				</div>
				<div class="modal-footer">
				</div>
			</form>
		</div>
	</body>
</html>

<script type="text/javascript" src="{$PUBLIC_PATH}js/jquery/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="{$PUBLIC_PATH}js/highcharts.js"></script>
<script type="text/javascript" src="{$PUBLIC_PATH}js/jquery/jquery.highchartTable.js"></script>
<script type="text/javascript" src="{$PUBLIC_PATH}js/jquery/jquery.timeago.js"></script>
<script type="text/javascript" src="{$PUBLIC_PATH}js/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript" src="{$PUBLIC_PATH}js/jquery/jquery.validate.min.js"></script>
<script type="text/javascript" src="{$PUBLIC_PATH}js/jquery/additional-methods.min.js"></script>
<script type="text/javascript" src="{$PUBLIC_PATH}js/flashMessage.js"></script>
<script type="text/javascript" src="{$PUBLIC_PATH}js/foxsis.js"></script>

{literal}
<script type="text/javascript">
	$(document).ready(function(){
		//default selected do menu
		$('#sidebar li.current_page_item').parents('li').addClass('current_page_ancestor current_page_parent').children('a').removeClass('ico-down-circle').addClass('ico-up-circle');
	});
	
	function initFlashMessage()
	{
		removeAllFlashMessages();
		{/literal}
			{if ($smarty.session.{$Uri->get('application')}.flashMessage)}
				setFlashMessage(
					'{$smarty.session.{$Uri->get('application')}.flashMessage.type}', 
					'{$smarty.session.{$Uri->get('application')}.flashMessage.title}', 
					'{$smarty.session.{$Uri->get('application')}.flashMessage.text}'
				);
			{/if}
		{literal}
	}

	
	var BASE_PATH = {/literal}{$BASE_PATH}{literal}
</script>
{/literal}